/*
 * File:   aUSBPS.h
 * Author: Twistx77
 *
 * Created on 22 de junio de 2012, 17:54
 */

#ifndef aUSBPS_H
#define aUSBPS_H
#include <stdio.h>
#include <stdlib.h>
#include <p18f26j50.h>
#include <GenericTypeDefs.h>
#include <pps.h>

#include "Util.h"
#include "HardwareConfig.h"
#include "USB_Handler.h"
#include "TLC49X.h"
#include "Microchip/usb_config.h"
#include "Microchip/usb.h"
#include "Microchip/usb_function_cdc.h"
#include "Microchip/DEE Emulation 8-bit.h"


#define SELECTION1_R_EE_OFFSET     1
#define SELECTION1_G_EE_OFFSET     3
#define SELECTION1_B_EE_OFFSET     5
#define SELECTION2_R_EE_OFFSET     7
#define SELECTION2_G_EE_OFFSET     9
#define SELECTION2_B_EE_OFFSET    11
#define SELECTION1_TIME_EE_OFFSET 13
#define TIME_OFF_EE_OFFSET        14
#define SELECTION2_TIME_EE_OFFSET 15

#define PRESETS_EE_OFFSET         20



void high_isr(void);
void low_isr(void);

void setOutputColors(uint16_t R, uint16_t G, uint16_t B);
void initPresetCycle(uint8_t presetNumber);
void setKeyToSet (uint8_t _keyToSet);
void startPattern(void);


//TODO: USER CODE

#endif
